package com.gyp.rpc;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.gyp.rpc.request.GetTokenReq;
import com.gyp.rpc.request.GetUserInfoReq;
import com.gyp.rpc.response.AccessTokenResponse;
import com.gyp.rpc.response.UserInfoResponse;

import java.util.List;

public interface WeChatClient {

    @Get("https://api.weixin.qq.com/sns/oauth2/access_token")
    AccessTokenResponse getToken(@Query GetTokenReq req);


    @Get("https://api.weixin.qq.com/sns/userinfo")
    UserInfoResponse getUserInfo(GetUserInfoReq userInfoReq);

    @Get("https://api.weixin.qq.com/sns/oauth2/access_token")
    JSONObject getAccessToken();


}
